﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_keylink")]
    [Serializable]
    public class KeyLink : ObjectBase<KeyLink>
    {
        [Default("cn"), NotNull(""), Column(Length = 50)]
        public String lng { get; set; }

        /// <summary>
        /// 排序字段,默认为50
        /// </summary>
        [Default(50), NotNull("请输入排序"), Column(Length = 11)]
        public Int32 pid { get; set; }

        [Default(0), NotNull(""), Column(Length = 11)]
        public Int32 mid { get; set; }

        [Default(0), NotNull(""), Column(Length = 11)]
        public Int32 tid { get; set; }

        [Default(0), NotNull(""), Column(Length = 5)]
        public Int32 hit { get; set; }

        [Default(""), NotNull(""), Column(Length = 200)]
        public String keywordname { get; set; }

        [Default(""), NotNull(""), Column(Length = 220)]
        public String linkurl { get; set; }

        [TinyInt, Default(0), NotNull(""), Column(Length = 1)]
        public Int32 islink { get; set; }

        [TinyInt, Default(0), NotNull(""), Column(Length = 1)]
        public Int32 istop { get; set; }

        [TinyInt, Default(1), NotNull(""), Column(Length = 1)]
        public Int32 isclass { get; set; }

        [TinyInt, Default(0), NotNull(""), Column(Length = 1)]
        public Int32 isreplace { get; set; }

    }
}
